package com.mmr.dxp.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;


@Entity
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "rds_resource_approval_suggest")
public class RdsResourceApprovalSuggest implements java.io.Serializable {

    /**
     * 资源审核申请表
     */
    private static final long serialVersionUID = 5539295234685543429L;
    //申请类型
    public static Integer REGISTER_APPLICATION = 0;
    public static Integer PUB_APPLICATION = 1;
    public static Integer SUB_APPLICATION = 2;
    public static Integer UPDATE_APPLICATION = 3;
    public static Integer DELETE_APPLICATION = 4;
    //申请对象
    public static Integer DEPARTMENT_APPROVAL = 1;
    public static Integer PLATFORM_APPROVAL = 2;


    private String id;
    private RdsResourceObject resource;
    /**
     * 申请类型(0注册申请，1，发布申请，2订阅申请，3变更申请， 4 撤销申请)
     */
    private Integer applicationType;
    /**
     * 申请对象(1部门，2平台)
     */
    private Integer applicationObject;
    private String departmentSuggest;
    private String platformSuggest;
    private String applicationReason;
    /**
     * 判断此条记录是否已经处理过  0未处理，1已处理
     */
    private Integer operState;
    /**
     * 审核结果  -1驳回，1通过 默认值0
     */
    private Integer approvalResult;
    /**
     * 申请时间
     */
    private Date applicationTime;
    /**
     * 申请人
     */
    private String applicationUser;
    /**
     * 申核时间
     */
    private Date approvalTime;
    /**
     * 申核人
     */
    private String approvalUser;
    /**
     * 撤消倒计时时间，单位天
     */
    private Integer expiryTime;
    /**
     * 订阅申请里的订阅ID
     */
    private String subId;

    private String approvalStatus;
}

